<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Mes offres</title>
</head>
<body>
	<h1>Mes offres</h1>
	<br />
	<table>
		<tbody>
			<tr>
				<th class="top" scope="col">Objet</th>
				<th class="top" scope="col">Statut annonce</th>
				<th class="top" scope="col">Mon offre</th>
				<th class="top" scope="col">Date offre</th>
				<th class="top" scope="col">Statut offre</th>
				<th class="top" scope="col">Action</th>
			</tr>
			<c:forEach var="offre" items="${requestScope.offres}">
				<tr>
					<td><a href='DetailsDemandeVente.do?numDemande=${offre.numDemande}'>${offre.demandeVente.titre}</a></td>
					<td>${offre.demandeVente.statut}</td>
					<td>${offre.prix}</td>							 
					<td><fmt:formatDate pattern="dd/MM/yy" value="${offre.dateOffre}" /></td>
					<td>${offre.statut}</td>
					<td><a href='demandeVente.jsp?method=update&id=${demande.numDemande}'>Modifier</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>